package com.example.demo.domain;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;



@Component
public class Category implements Serializable {
    private static final long serialVersionUID = 3992469837058393712L;

    @Getter
    private String categoryId;

    @Getter
    @Setter
    private String name;

    @Getter
    @Setter
    private String description;

    public void setCategoryId(String categoryId){
        this.categoryId = categoryId.trim();
    }

    public String toString(){
        return getCategoryId();
    }

}
